package NGUYENMINHHIEU.OOP.EXCERCISEDEMO.EX06_OBJECTS;

public class CIRCLE_ENTITY {
    private double Side01;
    private double Side02;
    private double Side03;
    
    public double Area(CIRCLE_ENTITY objEntity){
        double p = (objEntity.getSide01()
                                + objEntity.getSide02()
                                + objEntity.getSide03())/2;
        return Math.sqrt(p*(p-objEntity.getSide01())
                                            * (p-objEntity.getSide02())
                                            *(p-objEntity.getSide03()));
    }
    
    public double Perrimetter(CIRCLE_ENTITY objEntity){
        return objEntity.getSide01()
                        + objEntity.getSide02()
                        + objEntity.getSide03();
    }

    /**
     * @return the side01
     */
    public double getSide01() {
        return Side01;
    }

    /**
     * @param side01 the side01 to set
     */
    public void setSide01(double side01) {
        Side01 = side01;
    }

    /**
     * @return the side02
     */
    public double getSide02() {
        return Side02;
    }

    /**
     * @param side02 the side02 to set
     */
    public void setSide02(double side02) {
        Side02 = side02;
    }

    /**
     * @return the side03
     */
    public double getSide03() {
        return Side03;
    }

    /**
     * @param side03 the side03 to set
     */
    public void setSide03(double side03) {
        Side03 = side03;
    }       
}
